# coding:utf-8

from flask import Flask, render_template, request, redirect, url_for

app = Flask(__name__)

from flask_cors import CORS

app = Flask(__name__)
CORS(app, supports_credentials=True)


@app.route('/', methods=['POST', 'GET'])
def root():
    return render_template('1vs1.html')


@app.route('/dir', methods=['POST', 'GET'])
def dir():
    # if request.method == 'POST':
    #     print(request.form)
    #     return redirect(url_for('dir'))
    # return render_template('dir.html')
    return str("{\"score\": 0.88}")


if __name__ == '__main__':
    app.run('0.0.0.0', debug=True)
